package com.my.zidingyikongjian.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.my.zidingyikongjian.R;
import com.my.zidingyikongjian.view.six.MyWaveView;

public class TheThreeActivity extends AppCompatActivity {
    private String isWho;
    private MyWaveView myWaveView;
//    private DoubleWaveView doubleWaveView;
//    private FrameLayout rootView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_the_three);

        initData();
        initView();
        initListener();
    }

    private void initData() {
        Intent dataIntent = getIntent();
        isWho = dataIntent.getStringExtra("six");
    }

    private void initView() {
        myWaveView = findViewById(R.id.mwv);
        myWaveView.startMove();

//        initWaveView();
    }

//    private void initWaveView() {
//        rootView = findViewById(R.id.rootView);
//        doubleWaveView = new DoubleWaveView(this, this.getWindow().getWindowManager().getDefaultDisplay().getWidth(), 300);
//        FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(this.getWindow().getWindowManager().getDefaultDisplay().getWidth(), 300);
//        rootView.addView(doubleWaveView, params);
//        doubleWaveView.startAnimation();
//    }

    private void initListener() {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        myWaveView.stopMove();
    }
}
